package longcaisuyun.longcai.com.net;

import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

/**
 * Created by Administrator on 2016/4/12.
 */
@HttpInlet(Net.QIANGRESULT)
public class PostQiang extends WHAsyPost<PostQiang.Info> {
    public String driverid = "";

    public PostQiang(String driverid, AsyCallBack asyCallBack) {
        super(asyCallBack);
        this.driverid = driverid;
    }


    protected Info parser(JSONObject object) {
        Info info = new Info();
        try {
            info.message = object.getString("message");
            info.jsonArray = object.getJSONArray("list");
            return info;
        } catch (JSONException e) {
            e.printStackTrace();
        }

        return null;
    }

    public static class Info {
        public String message = "";
        public JSONArray jsonArray;
    }
}
